/**
 * 
 */
package xyz.zhengtank.dubbo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import xyz.zhengtank.dubbo.service.HelloService;

/**
 * @author tank
 * @since 2017-11-10
 * @category 服务消费测试类
 * 
 */
public class Consumer {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("classpath*:consumer.xml");
		context.start();
		HelloService helloService = (HelloService) context.getBean("helloService");
		System.out.println(helloService.sayHello("tank"));
	}

}
